package finalize;

public class B {
	  String name;   
	    int age;   
	  
	    public B(String name, int age) {   
	        this.name = name;   
	        this.age = age;   
	    }   
	  
	    @Override  
	    public void finalize() {   
	        System.out.println("B finalize at " + System.currentTimeMillis());   
	    }   
	  
	    @Override  
	    public String toString() {   
	        return name + " is " + age;   
	    } 
}
